package com.gitee.feizns.webtemplate.commons.session.boot;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author feizns
 * @since 2019/4/10
 */
@Data
@ConfigurationProperties(prefix = "session.manager")
public class SessionManagerProperties {

    /**
     * 会话有效期：默认30分钟
     */
    private int timeout = 1800000;

    /**
     * 初始化会话容器容量
     */
    private int initSize = 512;

    /**
     * 校验的请求头
     */
    private String tokenHeader = "token";

}
